package com.globaldom.model;

import java.io.Serializable;
import java.util.Date;

import javax.jdo.annotations.Extension;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.NotPersistent;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

//@Configurable
@PersistenceCapable
public class Research implements Serializable {

	/**
	 * 
	 */
	@NotPersistent
	private static final long serialVersionUID = 1L;

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	@Extension(vendorName = "datanucleus", key = "gae.encoded-pk", value = "true")
	private String id;

	@Persistent
	private String person;
	@Persistent
	private Integer researchType;
	@Persistent
	private Long scienceID;
	@Persistent
	private Date researchDate = new Date();

	// 0=Not started, 1= in progress,2=inqueue,3=interrupted, 100=complete
	@Persistent
	private Integer researchComplete;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getPersonID() {
		return person;
	}

	public void setPersonID(String personID) {
		this.person = personID;
	}

	public Integer getResearchType() {
		return researchType;
	}

	public void setResearchType(Integer researchType) {
		this.researchType = researchType;
	}

	public Date getResearchDate() {
		return researchDate;
	}

	public void setResearchDate(Date researchDate) {
		this.researchDate = researchDate;
	}

	public Integer getResearchComplete() {
		return researchComplete;
	}

	public Long getScienceID() {
		return scienceID;
	}

	public void setScienceID(Long scienceID) {
		this.scienceID = scienceID;
	}

	public void setResearchComplete(Integer researchComplete) {
		this.researchComplete = researchComplete;
	}



}
